<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html xmlns:form="http://www.w3.org/1999/xhtml">
<head><title>OSS Event Manager - Creating Event</title></head>
<body>


<form:form  modelAttribute="event">
    <table>
        <tr>
            <td>Name:</td>
            <td>
                <form:input path="name"/>
            </td>
        </tr>
        <tr>
            <td>Description:<form:errors path="description" cssClass="errors"/></td>
            <td>
                <form:textarea path="description"/>

            </td>
        </tr>
        <tr>
            <td>Location:</td>
            <td>
                <form:input path="location"/>
                <form:errors path="location" cssStyle="color: red" />
            </td>
        </tr>
        <tr>
            <!--td nowrap align="right">Start Date:&nbsp;</td>
            <td nowrap><form:input path="startDate" /></td>
            <td nowrap>In format: dd/MM/yyyy HH:mm&nbsp;<form:errors path="startDate" cssStyle="color: red" /></td>
            <td width="100%">&nbsp;</td-->
        </tr>
        <tr>
            <td nowrap align="right"><b>End Time:&nbsp;</b></td>
            <!--td nowrap align="left"><fmt:formatDate pattern="dd/MM/yyyy HH:mm" value="${event.endDate}" /></td-->

        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="Save"/></td>
        </tr>
    </table>
</form:form>

</body>
</html>